<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Agent_user_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-agent_user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[agent_user_id]" type="text" value="{$row.agent_user_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Agent_school_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-agent_school_name" data-rule="required" class="form-control" name="row[agent_school_name]" type="text" value="{$row.agent_school_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Agent_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-agent_name" data-rule="required" class="form-control" name="row[agent_name]" type="text" value="{$row.agent_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Agent_true_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-agent_true_name" class="form-control" name="row[agent_true_name]" type="text" value="{$row.agent_true_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Agent_phone')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-agent_phone" data-rule="required" class="form-control" name="row[agent_phone]" type="text" value="{$row.agent_phone|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Agent_password')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-agent_password" data-rule="required" class="form-control" name="row[agent_password]" type="text" value="{$row.agent_password|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Agent_card_number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-agent_card_number" data-rule="required" class="form-control" name="row[agent_card_number]" type="text" value="{$row.agent_card_number|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Agent_card_image1')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-agent_card_image1" class="form-control" size="50" name="row[agent_card_image1]" type="text" value="{$row.agent_card_image1|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-agent_card_image1" class="btn btn-danger plupload" data-input-id="c-agent_card_image1" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-agent_card_image1"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-agent_card_image1" class="btn btn-primary fachoose" data-input-id="c-agent_card_image1" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-agent_card_image1"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-agent_card_image1"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Agent_card_image2')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-agent_card_image2" class="form-control" size="50" name="row[agent_card_image2]" type="text" value="{$row.agent_card_image2|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-agent_card_image2" class="btn btn-danger plupload" data-input-id="c-agent_card_image2" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-agent_card_image2"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-agent_card_image2" class="btn btn-primary fachoose" data-input-id="c-agent_card_image2" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-agent_card_image2"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-agent_card_image2"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Agent_card_image3')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-agent_card_image3" class="form-control" size="50" name="row[agent_card_image3]" type="text" value="{$row.agent_card_image3|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-agent_card_image3" class="btn btn-danger plupload" data-input-id="c-agent_card_image3" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-agent_card_image3"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-agent_card_image3" class="btn btn-primary fachoose" data-input-id="c-agent_card_image3" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-agent_card_image3"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-agent_card_image3"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Agent_card_image4')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-agent_card_image4" class="form-control" size="50" name="row[agent_card_image4]" type="text" value="{$row.agent_card_image4|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-agent_card_image4" class="btn btn-danger plupload" data-input-id="c-agent_card_image4" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-agent_card_image4"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-agent_card_image4" class="btn btn-primary fachoose" data-input-id="c-agent_card_image4" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-agent_card_image4"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-agent_card_image4"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Apply_reply')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-apply_reply" class="form-control" name="row[apply_reply]" type="text" value="{$row.apply_reply|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Location')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-location" class="form-control" name="row[location]" type="text" value="{$row.location|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Longitude')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-longitude" class="form-control" name="row[longitude]" type="text" value="{$row.longitude|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Latitude')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-latitude" class="form-control" name="row[latitude]" type="text" value="{$row.latitude|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
